package com.tdam2014.grupo3.flickr;

/**
 * Class encapsulating a name/value parameter.
 *
 * @author Anthony Eden
 */
public class Parameter {

    private String name;
    private Object value;
    
    public Parameter(String name, Object value) {
        this.name = name;
        this.value = value;
    }

    public Parameter(String name, long value) {
        this.name = name;
        this.value = Long.valueOf(value);
    }

    public String getName() {
        return name;
    }

    public Object getValue() {
        return value;
    }
    
    @Override
    public String toString() {
        return "Parameter [name=" + name + ", value=" + value + "]";
    }
}